<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增品牌')"/>
    <th:block th:include="include :: jasny-bootstrap-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-brand-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">品牌名称：</label>
            <div class="col-sm-8">
                <input id="brandName" name="brandName" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">品牌网址：</label>
            <div class="col-sm-8">
                <input id="brandUrl" name="brandUrl" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">品牌介绍：</label>
            <div class="col-sm-8">
                <input id="brandDesc" name="brandDesc"  class="form-control" type="text">
            </div>
        </div>
        <!--<div class="form-group">-->
            <!--<label class="col-sm-3 control-label">图片预览：</label>-->
            <!--<br/>-->
            <!--<div class="fileinput fileinput-new" data-provides="fileinput">-->
                <!--<div class="fileinput-new thumbnail" style="width: 140px; height: 140px;">-->
                    <!--<img th:src="@{/img/profile.jpg}">-->
                <!--</div>-->
                <!--<div class="fileinput-preview fileinput-exists thumbnail"-->
                     <!--style="max-width: 200px; max-height: 150px;"></div>-->
                <!--<div>-->
                                <!--<span class="btn btn-white btn-file"><span class="fileinput-new">选择图片</span><span-->
                                        <!--class="fileinput-exists">更改</span><input type="file"></span>-->
                    <!--<a href="#" class="btn btn-white fileinput-exists" data-dismiss="fileinput">清除</a>-->
                <!--</div>-->
            <!--</div>-->
        <!--</div>-->

    </form>
</div>
<div th:include="include::footer"></div>
<th:block th:include="include :: jasny-bootstrap-js"/>
<script type="text/javascript">
    var prefix = ctx + "goods/brand"
    $("#form-brand-add").validate({
        rules: {
            xxxx: {
                required: true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-brand-add').serialize());
        }
    }
</script>
</body>
</html>
